From 45faab3eaae065bf7e8b7c5d4369ca90b42ac4e9 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Fri, 16 Aug 2013 04:42:15 +0000 Subject: [PATCH] slightly cleaner fix for Qt 4.6. --- gpsbabel/kml.cc | 2 +- gpsbabel/tiger.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/kml.cc b/gpsbabel/kml.cc index 23e379cdd..2c3bc644a 100644 --- a/gpsbabel/kml.cc +++ b/gpsbabel/kml.cc @@ -1844,7 +1844,7 @@ void kml_write_AbstractView(void) // the network position. So we shove the end of the timespan out to // ensure the right edge of that time slider includes us. // - time_max.setTime_t(realtime_positioning ? kml_time_max.toTime_t() + 600 : kml_time_max.toTime_t()); + time_max = realtime_positioning ? kml_time_max.addSecs(600) : kml_time_max; writer->writeTextElement("end", time_max.toPrettyString()); } writer->writeEndElement(); // Close gx:TimeSpan tag diff --git a/gpsbabel/tiger.cc b/gpsbabel/tiger.cc index a071aa498..d6b0990b4 100644 --- a/gpsbabel/tiger.cc +++ b/gpsbabel/tiger.cc @@ -189,7 +189,7 @@ tiger_disp(const waypoint *wpt) pin = wpt->icon_descr; } else if (wpt->icon_descr.contains("-unfound")) { pin = unfoundmarker; - } else if (wpt->GetCreationTime().toTime_t() > current_time().toTime_t() - 3600 * 24 * thresh_days) { + } else if (wpt->GetCreationTime() > current_time().addSecs(-3600 * 24 * thresh_days)) { pin = newmarker; } else { pin = oldmarker; -- 2.30.2